package com.cp_smss.dao.impl;

import java.util.List;

import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.cp_smss.dao.DepartmentDAO;
import com.cp_smss.model.Department;

@Repository
public class DepartmentDAOImpl implements DepartmentDAO{

	@Autowired
	private SqlSessionTemplate sqlSession;
	
	@Override
	public List<Department> getDepartments() {
		return sqlSession.selectList("com.cp_smss.model.DepartmentMapper.listDepartment");
	}

}
